package com.kayeah82.application.avatar.qq.repository;

import com.kayeah82.application.avatar.qq.model.Avatar;

import java.util.Optional;

/**
 * @author kayeah82
 * */
public interface AvatarRepository {

    /**
     * store avatar
     *
     * @param qq QQ
     * @param avatar Avatar Image
     * */
    void storeAvatar(String qq, Avatar avatar);

    /**
     * load avatar
     *
     * @param qq QQ
     * @return Avatar Image
     * */
    Optional<Avatar> loadAvatar(String qq);

}
